<h3>Create Project</h3>
<!-- Cria um projeto  -->
<div>
    <form name="createProjectForm" method="post" action="#">
                <div>
                    <label for="projectName">Nome</label>
                    <input type="text" id="projectName" name="projectName"/>
                </div>

                <div>
                        <label for="administer">Administrador do Projeto</label>
                        <select name="administerId">
                            <option value="none">selecione</option>
                            <?php 
                                $users = $this->ListUser(); 
                                foreach($users as $user)
                                {
                                   ?>
                            <option value="<?= $user['id']?>"><?=$user['name']?></option>
                                   <?php
                                }
                            ?>
                        </select>
                </div>

                <div>
                        <input type="submit" class="createProjectSubmit" name="createProjectSubmit"/>
                </div>
    </form>
</div>


<?php
    //mostra logs de bom funcionamento
    if(isset($this->message))
    {
?>
      <div class="message">
            <?=$this->message;?>
      </div>
 <?php
    }
 ?>


<?php
    //mostra logs de erro
    if(isset($this->error))
    {
?>
      <div class="error">
            <?=$this->error;?>
      </div>
 <?php
    }
 ?>
